import request from "./request"

// 注册
export const getRegisterAPI = (username:string, password:string, email:string) => request({ url: '/user/register', method: 'POST', data: { username, password, email } })

// 登录
export const getLoginAPI = (email:string, password:string) => request({ url: '/user/login', method: 'POST', data: { email, password } })

// 邮箱验证码
export const getEmailSmsAPI = (to:string) => request({ url: '/email/send', method: "POST", data: { to } })
